package com.tkm.advancedFunctions.eg

import java.io.File

fun main() {
    File(".gitignore")
        .readText()
        .toCharArray()
        .filterNot { it.isWhitespace() }
        .groupBy { it }
        .map { it.key to it.value.size }
        .let(::println)
}
